popover: Stop needles allocations
authorMatthias Clasen <mclasen@redhat.com>
Thu, 23 May 2019 00:18:12 +0000 (00:18 +0000)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 28 May 2019 20:25:17 +0000 (20:25 +0000)
We were queuing an allocation whenever
the popover is flipped over, unnecessarily,
since we don't change the size of the surface.

This was showing up as popovers being invisible
when flipped over, under X.

gtk/gtkpopover.c

index 73ff0aa559047edebdf713520f72622b4d686a17..f41a60f787e2d1f096cdcf973ed51e8ff4116ae2 100644 (file)
@@ -416,9 +416,6 @@ surface_moved_to_rect (GdkSurface   *surface,
       g_assert_not_reached ();
       break;
     }
-
-  if (priv->final_position != priv->position)
-    gtk_widget_queue_allocate (widget);
 }
 
 static void